package com.hebeu.gfh.mapper;

import com.hebeu.gfh.pojo.po.*;
import com.hebeu.gfh.pojo.vo.clubidAndname;
import com.hebeu.gfh.pojo.vo.pages;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 刘剑利
 * @Version: v1.0
 */
@Repository
@Mapper
public interface ClubsMapper {
    //添加社团
    public void addClub(Clubs clubs);
    //修改社团
    public void updateClub(Clubs clubs);
    //删除社团
    public void deleteClub(int clubId);
    //查询所有社团
    public List<Clubs> findAllClub(pages page);
    //根据社团id查询社团信息
    public Clubs findClubByclubId(int clubId);
    //根据社团名称模糊查询社团信息
    public List<Clubs> findClubsByclubName(String clubName);

    public int findClubCount();

    public List<Clubs> findClubByclubTid(int clubTid);

    public RecuritNew findClubnewByclubId(int clubId);

    public List<Clubs> findrecuritingnew(pages pages);

    public int findrecuritingnewNum();

    public List<clubidAndname> findIsManagerClubIdAndName(int userId);

    public void recuritNew(RecuritNew recuritNew);

    public void updateRecuritNew(RecuritNew recuritNew);

    public void deleteRecuritNew(int clubId);

    public List<Clubs> clubrecommend();


    public String getClubNameById(int clubId);

    public List<ClubApplication> getApplicationByUserId(@Param("userId") int userId,@Param("uid") int uid);
}
